package com.hanamaki.study.testng;

import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.Test;

public class EdgeDriverTestNg {

    @Test
    public static void edge() {

        /* 1. 注册驱动的位置  */
        System.setProperty("webdriver.edge.driver", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedgedriver.exe");

        /* 2, 注册驱动 */
        EdgeDriver driver = new EdgeDriver();

        /* 打开网址测试  */
        driver.get("https://www.baidu.com");
    }

}
